#ifndef LineView_H
#define LineView_H

#include "viewobject.h"
#include <qdom.h>

class QLabel;
class QMovie;
class HuaqiMovie;

typedef struct LineViewParam
{
    QString         m_resPassPath;
    QString         m_resNormalPath;
    QString         m_resFuturePath;
    QString         m_resSkipPath;
    QString         m_resCrossPath;
    QString         m_resCurrentPath;
    QString         m_resNextPath;//保留未用
    LineViewParam()
    {
        m_resPassPath = "";
        m_resNormalPath = "";
        m_resFuturePath = "";
        m_resCrossPath = "";
        m_resSkipPath = "";
        m_resCurrentPath = "";
        m_resNextPath = "";
    }
}LineViewParam;

class LineView : public ViewObject
{
    Q_OBJECT
public:
    static int m_id;
    Q_INVOKABLE explicit LineView(QWidget *parent = 0);
    ~LineView();

    void ShowObject();

    void GetAttribute(std::string&);

    void SetAttribute(std::string);

    void ParseXML(QDomElement* );

    void PacketXML(QDomElement*);

    void LoadStationPic(int, QString);

    void SetOffset(int offset);
private:
    LineViewParam *m_paramLineView;
    bool isshowLeft;
};

#endif // LineView_H
